// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.view.View;
import android.webkit.URLUtil;
import android.widget.AdapterView;
import com.nnee.p_pr.p_activity.p_a.cls_al;
import com.nnee.p_pr.p_atom.cls_g;
import com.nnee.p_pr.p_atom.cls_u;
import com.nnee.p_pr.p_d.cls_c;
import java.util.HashMap;
import java.util.Stack;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            MallListActivity, SubsInfoActivity, CustomTabActivity

class cls_ci
    implements android.widget.AdapterView.OnItemClickListener
{

	cls_ci(cls_MallListActivity malllistactivity)
    {
		super();
        a = malllistactivity;
        
    }

    public void onItemClick(AdapterView adapterview, View view, int i, long l)
    {

        
        if(cls_MallListActivity.e(a) == null || cls_MallListActivity.e(a).getItem(i) == null || !(cls_MallListActivity.e(a).getItem(i) instanceof cls_u)) {return;}

        cls_u u1 = (cls_u)cls_MallListActivity.e(a).getItem(i);
        if(u1 != null)
        {
            u1.U();
            if(u1.al())
            {
                cls_SubsInfoActivity.a(a.d, u1);
                cls_c.a(a.p(), 1700, u1.U());
            } else
            {
                String s = u1.b(cls_g.bEAlernate);
                if(s != null)
                {
                    if(!URLUtil.isNetworkUrl(s))
                        s = (new StringBuilder()).append("http://easyread.163.com").append(s).toString();
                    if(u1.aT())
                        cls_CustomTabActivity.a(a.d, s);
                    else
                    if(!com.nnee.p_pr.p_activity.cls_MallListActivity.g(a))
                    {
                        cls_MallListActivity.a(a, 2);
                        cls_MallListActivity.b(a, 0);
                        cls_MallListActivity.f(a).clear();
                        int j = cls_MallListActivity.a(a, 304, null, s, null);
                        cls_MallListActivity.f(a).put(new Integer(j), s);
                        com.nnee.p_pr.p_activity.p_view.cls_al al1 = new com.nnee.p_pr.p_activity.p_view.cls_al();
                        al1.a = cls_MallListActivity.h(a);
                        if(i + -1 > 0)
                            i--;
                        al1.b = i;
                        al1.c = u1.U();
                        cls_MallListActivity.i(a).push(al1);
                        cls_MallListActivity.a(a, s);
                        cls_MallListActivity.b(a, null);
                        cls_MallListActivity.a(a, true);
                        a.c();
                        cls_c.a(a.p(), 1696, u1.U());
                    }
                }
            }
        }
      
    }

    final cls_MallListActivity a;
}
